<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/admin/js/engine.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/jq_validate.js"></script>
<script type="text/javascript">
$(function(){
	$('#title').validate('required','请填写菜单中文语言名称').validate('maxlength',30,'标题长度10~30个字符').validate();
	$('#name').validate('required','请填写菜单英文名称').validate();
	$('#dataForm').submitValidate();	
});
</script>
<body class="mainBackground">
	<include file="Public:menu" />
	<div class="main" id="mainContainer">
        <!--发布-->
    	<div class="content_box">
        	<div class="content_box_t">
            	<h3 class="fl">
                <neq name="data[parent_id]" value=''>
                编辑<else/>新增</neq>菜单
                </h3>
            </div>
            <div class="content_box_c">
            	<form action="__ACTION__" method="post" id="dataForm" name="dataForm">
                	<div class="field">
						<label>上级菜单</label>
						<select name="parent_id" class="public_dropdown w15_input" id="parent_id">
        					<option value="0">作为一级菜单</option>
            				{$optionStr}
						</select>
					</div> 
                	<div class="field pt15">
						<label>菜单类型</label>
						<select name="level" class="public_dropdown w15_input" id="level" type="select-one">
            				<volist name="levelArr" id="vo">
                            	<option value="{$vo.key}" <eq name="vo.key" value="$data[level]">selected</eq>
                                />{$vo.title}</option>
               				</volist>
						</select>
                        <span class="input_notification  png_bg" id="levelTip"></span>
					</div>                                                                     
                	<div class="field pt15">
						<label>对应的中文语言名称</label>
						<input class="text_input w10_input" type="text" name="title" id="title" value="{$data.title}" />
                        <span class="input_notification  png_bg" id="titleTip"></span>
						<small>必填</small>
					</div>
                	<div class="field pt15">
						<label>菜单英文名称</label>
						<input class="text_input w10_input" type="text" name="name" id="name" value="{$data.name}" />
                        <span class="input_notification  png_bg" id="nameTip"></span>
						<small>必填</small>
					</div>                   
                	<div class="field pt15">
						<label>是否导航显示</label>
						<input type="checkbox" name="is_show"  value="1" <eq name="data.is_show" value="1"> checked</eq> />是 
					</div>
                	<div class="field pt15">
						<label>是否开放</label>
						<input type="checkbox" name="status"  value="1" <eq name="data.status" value="1"> checked</eq>/>是 
                        <small>默认开放</small>
					</div> 
                	<div class="field pt15">
						<label>排序</label>
						<input class="text_input w5_input" type="text" name="sort_order" id="sort_order" value="{$data.sort_order|default=0}" />
					</div>                                                                                                                              
                    <div class="field pt15 clearfix">
                    	<input type="hidden" name="id" value="{$data.id}"/>
                    	<input type="submit" value="提交" class="public_button fr" />
                    </div>                                                                               
                </form>
            </div>
        </div>            
        <!--发布结束-->
    </div>
</body>
</html>
